<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
 
 
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
              	SQL 预览
            </h4>
         </div>
         <div class="modal-body" style="height:300px;">
         
        	<form action="PieServlet" id="create" method="post">
            	<textarea class="form-control" rows="3" id="showSql" name="sql"></textarea>
               	 <label  class="col-sm-2 control-label">标题</label>
			      <div class="col-sm-10">
			         <input type="text"    
			            placeholder="请输标题" name="text" >
			      </div>
			      
			      <label   class="col-sm-2 control-label">子标题</label>
			      <div class="col-sm-10">
			         <input type="text"  
			            placeholder="请输子标题" name="subtext">
			      </div>
			      
			       <label for="lastname" class="col-sm-2 control-label">名称</label>
			      <div class="col-sm-10">
			         <input type="text"  
			            placeholder="请输标题" name="name">
			      </div>
			  </form>   
         </div>
           
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button>
        	<button type="button" class="btn btn-primary" onclick="testSql()">
               	测试sql
            </button>
            <button type="button" class="btn btn-primary" onclick="createPie()">
               	制作饼图
            </button>
         </div>
      </div> 
</div> 